package com.tfjybj.itoo.exam.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import java.io.Serializable;

/**
 * ProfessionModel
 * 专业表
 *
 * @author 杨江涛 
 * @version 2.0.0
 * @since 2.0.0 2018-11-15 10:35:56
 */
@ApiModel(value = "ProfessionModel:专业表")
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
public class ProfessionModel implements Serializable {

    //region 模板逆向生产来自ProfessionEntity的属性
	/**
	 * id
	 */
	@ApiModelProperty(value = "profession主键")
	@Column(name = "id")
	private String id;
   	/**
	 * 专业名称
	 */
	@ApiModelProperty(value = "专业名称",required = true)
	private String name;

	/**
	 * 专业代码
	 */
	@ApiModelProperty(value = "专业代码",required = true)
	private String code;

	/**
	 * 学制（4，3，2等）
	 */
    @ApiModelProperty(value = "学制（4，3，2等）")
	private String schoolLength;

	/**
	 * 专业性质（1专科,2本科,3专接本）
	 */
    @ApiModelProperty(value = "专业性质（1专科,2本科,3专接本）")
	private String nature;

	/**
	 * 学院_id
	 */
    @ApiModelProperty(value = "学院_id")
	private String academyId;

    //endregion

     /* *****************************以下是非模板生成的内容************************************ */

	/**
	 * 班级数
	 */
	@ApiModelProperty(value = "班级数")
	private int countClass;

	/**
	 * key
	 */
	@ApiModelProperty(value = "academy主键")
	@Column(name = "key")
	private String key;
	/**
	 * 机构名称
	 */
	@ApiModelProperty(value = "机构名称", required = true)
	private String title;


	/**
	 * 树形图是否可用,前端使用
	 */
	@ApiModelProperty(value = "bool", required = true)
	private boolean disableCheckbox;

	public boolean getDisableCheckbox() {
		return disableCheckbox;
	}

	public void setDisableCheckbox(boolean disableCheckbox) {
		this.disableCheckbox = disableCheckbox;
	}
}
